package cc.j1902.wfsort.provider.postbar.service.impl;

import cc.j1902.wfsort.dao.DetailMapper;
import cc.j1902.wfsort.service.RpcDetailService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.stereotype.Component;
import cc.j1902.wfsort.pojo.Detail;
import javax.annotation.Resource;

import java.util.List;

@Component
@Service(interfaceClass = RpcDetailService.class)
public class DetailServiceImpl implements RpcDetailService {
//1111
    @Resource
    private DetailMapper detailMapper;
    @Override
    public int save(Detail detail) {
//        if(detail.getSortId()==0){
//            detail.setSortId(null);
//        }

        return detailMapper.save(detail);
    }

    @Override
    public List<Detail> getDetailListByPage(Detail detail) {
        return detailMapper.getDetailListByPage(detail);
    }
}
